package com.gamewithpurpose.dbinterface.POJO;

import java.sql.Timestamp;

import com.gamewithpurpose.utils.GWPUtils;

/*
 * Answer is a POJO for the answer table.
 */
public class Answer {
	private int id;
	private int phraseId;
	private int userId;
	private String answer;
	private Timestamp timestamp;
	
	public Answer() {
	}
	
	public Answer(int phraseId, int userId, String answer) {
		this.phraseId = phraseId;
		this.userId = userId;
		this.answer = answer;
		timestamp = GWPUtils.getTimestamp("UTC");
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getPhraseId() {
		return phraseId;
	}
	
	public void setPhraseId(int phraseId) {
		this.phraseId = phraseId;
	}
	
	public int getUserId() {
		return userId;
	}
	
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	public String getAnswer() {
		return answer;
	}
	
	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Timestamp getTimestamp() {
		return timestamp;
	}
	
	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}
}
